<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/nav.css" />
<script type="text/javascript" src="view/admin/js/ajax.js"></script>
<script type="text/javascript" src="view/admin/js/nav.js"></script>
<title>Insert title here</title>
</head>
<body>
    <h2><a href="?a=nav">返回导航列表</a>商品 -- 添加导航条</h2>
    <form method="post" name="add" action="?a=nav&m=add">
        <input type="hidden" name="sid" value="{$smarty.get.sid}" />
        <dl class="form">
            {if $fNav}<dd>主类名称：[{$fNav[0]->name}]</dd>{/if}
            <dd>名　　称：<input type="text" name="name" class="text" onblur="ajaxCheckNav();"/> ( * 2~4位)</dd>
            <dd id="warning" class="warning">导航名已被占用!</dd>
            <dd><span class="middle">简　　介：</span><textarea name="info"></textarea> <span class="middle">( *200位以内)</span></dd>
            {if $fNav}<dd>关联品牌:{html_checkboxes name='brand' options=$allBrand}</dd>{/if}
            <dd>价格区间:{html_checkboxes name=price options=$allPrice}</dd>
            <dd><input type="submit" name="send" value="新增导航" class="submit" onclick="return checkAddNav();"/></dd>
        </dl>
    </form>
</body>
</html>